﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace SuperJ.CMS.ViewModels
{
    [Bind(Exclude = "AnnounceId,CreateTime")]

    public class AnnounceViewModel
    {
        public int ChannelId { get; set; }
        public int AnnounceId { get; set; }
        /// <summary>
        /// PublisherId
        /// </summary>
        public int AdminId { get; set; }
        /// <summary>
        /// Publisher
        /// </summary>
        public string AdminName { get; set; }
        /// <summary>
        /// IsTop
        /// </summary>
        public bool IsTop { get; set; }
        /// <summary>
        /// TitleColor
        /// </summary>
        public int TitleColor { get; set; }
        /// <summary>
        /// Title
        /// </summary>
        [Required]
        [DisplayName("标题")]
        [StringLength(200)]
        public string Title { get; set; }
        /// <summary>
        /// LinkUrl
        /// </summary>
        public string LinkUrl { get; set; }
        public string FullContent { get; set; }
        /// <summary>
        /// Readme
        /// </summary>
        public string Readme { get; set; }
        /// <summary>
        /// CreateTime
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// IsPass
        /// </summary>
        public bool IsPass { get; set; }


        //[ScaffoldColumn(false)]
        //public int OrderId { get; set; }

        //[ScaffoldColumn(false)]
        //public System.DateTime OrderDate { get; set; }

        //[ScaffoldColumn(false)]
        //public string Username { get; set; }

        //[Required(ErrorMessage = "First Name is required")]
        //[DisplayName("First Name")]
        //[StringLength(160)]
        //public string FirstName { get; set; }

        //[Required(ErrorMessage = "Last Name is required")]
        //[DisplayName("Last Name")]
        //[StringLength(160)]
        //public string LastName { get; set; }

        //[Required(ErrorMessage = "Address is required")]
        //[StringLength(70)]
        //public string Address { get; set; }

        //[Required(ErrorMessage = "City is required")]
        //[StringLength(40)]
        //public string City { get; set; }

        //[Required(ErrorMessage = "State is required")]
        //[StringLength(40)]
        //public string State { get; set; }

        //[Required(ErrorMessage = "Postal Code is required")]
        //[DisplayName("Postal Code")]
        //[StringLength(10)]
        //public string PostalCode { get; set; }

        //[Required(ErrorMessage = "Country is required")]
        //[StringLength(40)]
        //public string Country { get; set; }

        //[Required(ErrorMessage = "Phone is required")]
        //[StringLength(24)]
        //public string Phone { get; set; }

        //[Required(ErrorMessage = "Email Address is required")]
        //[DisplayName("Email Address")]
        //[RegularExpression(@"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}",
        //    ErrorMessage = "Email is is not valid.")]
        //[DataType(DataType.EmailAddress)]
        //public string Email { get; set; }

        //[ScaffoldColumn(false)]
        //public decimal Total { get; set; }

    }
}